# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=lsp-plugins
pkgver=1.2.2
pkgrel=0
pkgdesc="Collection of free plugins compatible with LADSPA, LV2 and LinuxVST"
url="https://lsp-plug.in"
arch="all !armv7" # ftbfs
license="LGPL-3.0-or-later"
options="!check" # no testsuite
makedepends="
	cairo-dev
	cmd:php
	jack-dev
	ladspa-dev
	libsndfile-dev
	libxrandr-dev
	lv2-dev
	mesa-dev
	"
subpackages="$pkgname-doc $pkgname-dev"
source="https://github.com/sadko4u/lsp-plugins/releases/download/$pkgver/lsp-plugins-src-$pkgver.tar.gz
	cflags.patch
	"
builddir="$srcdir/$pkgname"

build() {
	make \
		PREFIX=/usr \
		ADD_FEATURES=xdg \
		config
	make PREFIX=/usr
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
63a1da2007a91db0e9bed97c26de5c5621b429d801b8d0eaf0e8d26aba2a57631824566e2c0ad48ea5943a5050cc40d4328c30427e4986b85d2878773a51dae1  lsp-plugins-src-1.2.2.tar.gz
d5a8dc5d85ebfa6459a4a529957fd1e63e06af3ad6f4afd506689ff66f38aa1cb60c5ea95542c2314a45cef7be5e4e62e9d7f2e0911afbcdb3f54e2cc5bfd9c6  cflags.patch
"
